import request from '@/utils/request'

export function roleinfo(pageNum) {
  return request({
    url: '/RoleManage/roleinfo',
    method: 'GET',
    params: { pageNum }
  })
}
export function add(data) {
  return request({
    url: '/RoleManage/roleadd',
    method: 'POST',
    data
  })
}
export function deleteRole(role) {
  return request({
    url: '/RoleManage/del',
    method: 'GET',
    params: { role }
  })
}
export function update(data) {
  return request({
    url: '/RoleManage/update',
    method: 'POST',
    data
  })
}
export function getRole(role) {
  return request({
    url: '/RoleManage/dynamic_search',
    method: 'GET',
    params: { role }
  })
}
